package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_SYS_USER"
 *     
*/
public class CcpSysUser implements Serializable {

    /** identifier field */
    private String usrGuid;

    /** persistent field */
    private String usrName;

    /** persistent field */
    private String usrTitle;

    /** nullable persistent field */
    private String usrDescription;

    /** nullable persistent field */
    private String usrPw;

    /** nullable persistent field */
    private String usrCanchpw;

    /** nullable persistent field */
    private BigDecimal usrFailcount;

    /** nullable persistent field */
    private String usrDisabled;

    /** nullable persistent field */
    private Date usrPeriod1;

    /** nullable persistent field */
    private Date usrPeriod2;

    /** nullable persistent field */
    private Date usrLocktime;

    /** nullable persistent field */
    private String usrSex;

    /** nullable persistent field */
    private Date usrBirth;

    /** nullable persistent field */
    private String usrOrg;

    /** nullable persistent field */
    private String usrDept;

    /** nullable persistent field */
    private String usrPlace;

    /** nullable persistent field */
    private String usrProf;

    /** nullable persistent field */
    private String usrPostcode;

    /** nullable persistent field */
    private String usrAddress;

    /** nullable persistent field */
    private String usrPhone;

    /** nullable persistent field */
    private String usrMphone;

    /** nullable persistent field */
    private String usrHphone;

    /** nullable persistent field */
    private String usrFax;

    /** nullable persistent field */
    private String usrEmail;

    /** nullable persistent field */
    private String usrPage;

    /** nullable persistent field */
    private byte[] usrImage;

    /** nullable persistent field */
    private String usrCert;

    /** nullable persistent field */
    private String usrBindips;

    /** nullable persistent field */
    private String sysOrder;

    /** nullable persistent field */
    private BigDecimal usrReserved1;

    /** nullable persistent field */
    private BigDecimal usrReserved2;

    /** nullable persistent field */
    private String usrReserved3;

    /** nullable persistent field */
    private String usrReserved4;

    /** nullable persistent field */
    private String usrReserved5;

    /** nullable persistent field */
    private String usrReserved6;

    /** full constructor */
    public CcpSysUser(String usrGuid, String usrName, String usrTitle, String usrDescription, String usrPw, String usrCanchpw, BigDecimal usrFailcount, String usrDisabled, Date usrPeriod1, Date usrPeriod2, Date usrLocktime, String usrSex, Date usrBirth, String usrOrg, String usrDept, String usrPlace, String usrProf, String usrPostcode, String usrAddress, String usrPhone, String usrMphone, String usrHphone, String usrFax, String usrEmail, String usrPage, byte[] usrImage, String usrCert, String usrBindips, String sysOrder, BigDecimal usrReserved1, BigDecimal usrReserved2, String usrReserved3, String usrReserved4, String usrReserved5, String usrReserved6) {
        this.usrGuid = usrGuid;
        this.usrName = usrName;
        this.usrTitle = usrTitle;
        this.usrDescription = usrDescription;
        this.usrPw = usrPw;
        this.usrCanchpw = usrCanchpw;
        this.usrFailcount = usrFailcount;
        this.usrDisabled = usrDisabled;
        this.usrPeriod1 = usrPeriod1;
        this.usrPeriod2 = usrPeriod2;
        this.usrLocktime = usrLocktime;
        this.usrSex = usrSex;
        this.usrBirth = usrBirth;
        this.usrOrg = usrOrg;
        this.usrDept = usrDept;
        this.usrPlace = usrPlace;
        this.usrProf = usrProf;
        this.usrPostcode = usrPostcode;
        this.usrAddress = usrAddress;
        this.usrPhone = usrPhone;
        this.usrMphone = usrMphone;
        this.usrHphone = usrHphone;
        this.usrFax = usrFax;
        this.usrEmail = usrEmail;
        this.usrPage = usrPage;
        this.usrImage = usrImage;
        this.usrCert = usrCert;
        this.usrBindips = usrBindips;
        this.sysOrder = sysOrder;
        this.usrReserved1 = usrReserved1;
        this.usrReserved2 = usrReserved2;
        this.usrReserved3 = usrReserved3;
        this.usrReserved4 = usrReserved4;
        this.usrReserved5 = usrReserved5;
        this.usrReserved6 = usrReserved6;
    }

    /** default constructor */
    public CcpSysUser() {
    }

    /** minimal constructor */
    public CcpSysUser(String usrGuid, String usrName, String usrTitle) {
        this.usrGuid = usrGuid;
        this.usrName = usrName;
        this.usrTitle = usrTitle;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="USR_GUID"
     *         
     */
    public String getUsrGuid() {
        return this.usrGuid;
    }

    public void setUsrGuid(String usrGuid) {
        this.usrGuid = usrGuid;
    }

    /** 
     *            @hibernate.property
     *             column="USR_NAME"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getUsrName() {
        return this.usrName;
    }

    public void setUsrName(String usrName) {
        this.usrName = usrName;
    }

    /** 
     *            @hibernate.property
     *             column="USR_TITLE"
     *             length="150"
     *             not-null="true"
     *         
     */
    public String getUsrTitle() {
        return this.usrTitle;
    }

    public void setUsrTitle(String usrTitle) {
        this.usrTitle = usrTitle;
    }

    /** 
     *            @hibernate.property
     *             column="USR_DESCRIPTION"
     *             length="250"
     *         
     */
    public String getUsrDescription() {
        return this.usrDescription;
    }

    public void setUsrDescription(String usrDescription) {
        this.usrDescription = usrDescription;
    }

    /** 
     *            @hibernate.property
     *             column="USR_PW"
     *             length="250"
     *         
     */
    public String getUsrPw() {
        return this.usrPw;
    }

    public void setUsrPw(String usrPw) {
        this.usrPw = usrPw;
    }

    /** 
     *            @hibernate.property
     *             column="USR_CANCHPW"
     *             length="1"
     *         
     */
    public String getUsrCanchpw() {
        return this.usrCanchpw;
    }

    public void setUsrCanchpw(String usrCanchpw) {
        this.usrCanchpw = usrCanchpw;
    }

    /** 
     *            @hibernate.property
     *             column="USR_FAILCOUNT"
     *             length="38"
     *         
     */
    public BigDecimal getUsrFailcount() {
        return this.usrFailcount;
    }

    public void setUsrFailcount(BigDecimal usrFailcount) {
        this.usrFailcount = usrFailcount;
    }

    /** 
     *            @hibernate.property
     *             column="USR_DISABLED"
     *             length="1"
     *         
     */
    public String getUsrDisabled() {
        return this.usrDisabled;
    }

    public void setUsrDisabled(String usrDisabled) {
        this.usrDisabled = usrDisabled;
    }

    /** 
     *            @hibernate.property
     *             column="USR_PERIOD1"
     *             length="23"
     *         
     */
    public Date getUsrPeriod1() {
        return this.usrPeriod1;
    }

    public void setUsrPeriod1(Date usrPeriod1) {
        this.usrPeriod1 = usrPeriod1;
    }

    /** 
     *            @hibernate.property
     *             column="USR_PERIOD2"
     *             length="23"
     *         
     */
    public Date getUsrPeriod2() {
        return this.usrPeriod2;
    }

    public void setUsrPeriod2(Date usrPeriod2) {
        this.usrPeriod2 = usrPeriod2;
    }

    /** 
     *            @hibernate.property
     *             column="USR_LOCKTIME"
     *             length="23"
     *         
     */
    public Date getUsrLocktime() {
        return this.usrLocktime;
    }

    public void setUsrLocktime(Date usrLocktime) {
        this.usrLocktime = usrLocktime;
    }

    /** 
     *            @hibernate.property
     *             column="USR_SEX"
     *             length="1"
     *         
     */
    public String getUsrSex() {
        return this.usrSex;
    }

    public void setUsrSex(String usrSex) {
        this.usrSex = usrSex;
    }

    /** 
     *            @hibernate.property
     *             column="USR_BIRTH"
     *             length="23"
     *         
     */
    public Date getUsrBirth() {
        return this.usrBirth;
    }

    public void setUsrBirth(Date usrBirth) {
        this.usrBirth = usrBirth;
    }

    /** 
     *            @hibernate.property
     *             column="USR_ORG"
     *             length="100"
     *         
     */
    public String getUsrOrg() {
        return this.usrOrg;
    }

    public void setUsrOrg(String usrOrg) {
        this.usrOrg = usrOrg;
    }

    /** 
     *            @hibernate.property
     *             column="USR_DEPT"
     *             length="100"
     *         
     */
    public String getUsrDept() {
        return this.usrDept;
    }

    public void setUsrDept(String usrDept) {
        this.usrDept = usrDept;
    }

    /** 
     *            @hibernate.property
     *             column="USR_PLACE"
     *             length="100"
     *         
     */
    public String getUsrPlace() {
        return this.usrPlace;
    }

    public void setUsrPlace(String usrPlace) {
        this.usrPlace = usrPlace;
    }

    /** 
     *            @hibernate.property
     *             column="USR_PROF"
     *             length="100"
     *         
     */
    public String getUsrProf() {
        return this.usrProf;
    }

    public void setUsrProf(String usrProf) {
        this.usrProf = usrProf;
    }

    /** 
     *            @hibernate.property
     *             column="USR_POSTCODE"
     *             length="20"
     *         
     */
    public String getUsrPostcode() {
        return this.usrPostcode;
    }

    public void setUsrPostcode(String usrPostcode) {
        this.usrPostcode = usrPostcode;
    }

    /** 
     *            @hibernate.property
     *             column="USR_ADDRESS"
     *             length="250"
     *         
     */
    public String getUsrAddress() {
        return this.usrAddress;
    }

    public void setUsrAddress(String usrAddress) {
        this.usrAddress = usrAddress;
    }

    /** 
     *            @hibernate.property
     *             column="USR_PHONE"
     *             length="100"
     *         
     */
    public String getUsrPhone() {
        return this.usrPhone;
    }

    public void setUsrPhone(String usrPhone) {
        this.usrPhone = usrPhone;
    }

    /** 
     *            @hibernate.property
     *             column="USR_MPHONE"
     *             length="100"
     *         
     */
    public String getUsrMphone() {
        return this.usrMphone;
    }

    public void setUsrMphone(String usrMphone) {
        this.usrMphone = usrMphone;
    }

    /** 
     *            @hibernate.property
     *             column="USR_HPHONE"
     *             length="100"
     *         
     */
    public String getUsrHphone() {
        return this.usrHphone;
    }

    public void setUsrHphone(String usrHphone) {
        this.usrHphone = usrHphone;
    }

    /** 
     *            @hibernate.property
     *             column="USR_FAX"
     *             length="100"
     *         
     */
    public String getUsrFax() {
        return this.usrFax;
    }

    public void setUsrFax(String usrFax) {
        this.usrFax = usrFax;
    }

    /** 
     *            @hibernate.property
     *             column="USR_EMAIL"
     *             length="250"
     *         
     */
    public String getUsrEmail() {
        return this.usrEmail;
    }

    public void setUsrEmail(String usrEmail) {
        this.usrEmail = usrEmail;
    }

    /** 
     *            @hibernate.property
     *             column="USR_PAGE"
     *             length="250"
     *         
     */
    public String getUsrPage() {
        return this.usrPage;
    }

    public void setUsrPage(String usrPage) {
        this.usrPage = usrPage;
    }

    /** 
     *            @hibernate.property
     *             column="USR_IMAGE"
     *             length="2147483647"
     *         
     */
    public byte[] getUsrImage() {
        return this.usrImage;
    }

    public void setUsrImage(byte[] usrImage) {
        this.usrImage = usrImage;
    }

    /** 
     *            @hibernate.property
     *             column="USR_CERT"
     *             length="2000"
     *         
     */
    public String getUsrCert() {
        return this.usrCert;
    }

    public void setUsrCert(String usrCert) {
        this.usrCert = usrCert;
    }

    /** 
     *            @hibernate.property
     *             column="USR_BINDIPS"
     *             length="20"
     *         
     */
    public String getUsrBindips() {
        return this.usrBindips;
    }

    public void setUsrBindips(String usrBindips) {
        this.usrBindips = usrBindips;
    }

    /** 
     *            @hibernate.property
     *             column="SYS_ORDER"
     *             length="10"
     *         
     */
    public String getSysOrder() {
        return this.sysOrder;
    }

    public void setSysOrder(String sysOrder) {
        this.sysOrder = sysOrder;
    }

    /** 
     *            @hibernate.property
     *             column="USR_RESERVED1"
     *             length="38"
     *         
     */
    public BigDecimal getUsrReserved1() {
        return this.usrReserved1;
    }

    public void setUsrReserved1(BigDecimal usrReserved1) {
        this.usrReserved1 = usrReserved1;
    }

    /** 
     *            @hibernate.property
     *             column="USR_RESERVED2"
     *             length="38"
     *         
     */
    public BigDecimal getUsrReserved2() {
        return this.usrReserved2;
    }

    public void setUsrReserved2(BigDecimal usrReserved2) {
        this.usrReserved2 = usrReserved2;
    }

    /** 
     *            @hibernate.property
     *             column="USR_RESERVED3"
     *             length="10"
     *         
     */
    public String getUsrReserved3() {
        return this.usrReserved3;
    }

    public void setUsrReserved3(String usrReserved3) {
        this.usrReserved3 = usrReserved3;
    }

    /** 
     *            @hibernate.property
     *             column="USR_RESERVED4"
     *             length="20"
     *         
     */
    public String getUsrReserved4() {
        return this.usrReserved4;
    }

    public void setUsrReserved4(String usrReserved4) {
        this.usrReserved4 = usrReserved4;
    }

    /** 
     *            @hibernate.property
     *             column="USR_RESERVED5"
     *             length="200"
     *         
     */
    public String getUsrReserved5() {
        return this.usrReserved5;
    }

    public void setUsrReserved5(String usrReserved5) {
        this.usrReserved5 = usrReserved5;
    }

    /** 
     *            @hibernate.property
     *             column="USR_RESERVED6"
     *             length="200"
     *         
     */
    public String getUsrReserved6() {
        return this.usrReserved6;
    }

    public void setUsrReserved6(String usrReserved6) {
        this.usrReserved6 = usrReserved6;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("usrGuid", getUsrGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpSysUser) ) return false;
        CcpSysUser castOther = (CcpSysUser) other;
        return new EqualsBuilder()
            .append(this.getUsrGuid(), castOther.getUsrGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getUsrGuid())
            .toHashCode();
    }

}
